﻿using System.ComponentModel.DataAnnotations;

namespace Common.Dto;

/// <summary>
/// 分布查询参数
/// </summary>
public class PageQuery
{
    /// <summary>
    /// 当前页码
    /// </summary>
    [Required]
    [Range(1, int.MaxValue)]
    public int? PageNo { get; set; }

    /// <summary>
    /// 每页条目
    /// </summary>
    [Required]
    [Range(1, 100000)]
    public int? PageSize { get; set; }
}